<?php

namespace app\components\oauth2\http;

use GuzzleHttp\Psr7\Response;

class ResponseFactory implements \Http\Message\ResponseFactory
{

    public function createResponse($statusCode = 200, $reasonPhrase = null, array $headers = [], $body = null, $protocolVersion = '1.1')
    {
        return new Response(
            $statusCode,
            $headers,
            $body,
            $protocolVersion,
            $reasonPhrase
        );
    }
}